package br.com.amadeus.android.entities;

import br.com.amadeus.android.activities.home.R;


public class ChatContact {
	public static final int ONLINE = 0;
	public static final int AWAY = 1;
	public static final int OFFLINE = 2;
	
	public static final int TEACHER = 0;
	public static final int STUDENT = 1;
	
	public String name;
	public String status;
	private int imageStatus;
	/*private transient int imageProfile;*/
	
	//public String image;
	
	public ChatContact(String name, String status, int type) {
		super();
		this.name = name;
		this.status = status;
		this.imageStatus = type;
	}

	public ChatContact(String name, int type) {
		super();
		this.name = name;
		this.imageStatus = type;
	}

	/*public int getImageProfile() {
		switch (imageProfile) {
		case STUDENT:
			return br.com.amadeus.android.R.drawable.online;
		case TEACHER:
			return br.com.amadeus.android.R.drawable.away;
		default:
			return STUDENT;
		}
	}*/

	/*public void setImageProfile(int imageProfile) {
		this.imageProfile = imageProfile;
	}*/

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public int getImageStatus() {
		switch (imageStatus) {
		case ONLINE:
			return R.drawable.online;
		case AWAY:
			return R.drawable.away;
		case OFFLINE:
			return R.drawable.offline;
		default:
			return OFFLINE;
		}
	}
	
	@Override
	public String toString(){
		return this.name;
	}
	
	
	
}
